package fun.easycode.jointblock.manager;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(
        name = "PraiseCountClient",
        url = "http://api.cd0755d8e9df9425a8d1653d7ac3a863d.cn-beijing.alicontainer.com/like-api")
public interface PraiseCountClient {
    /**
     * 批量查询点赞数
     *
     * @param topicIds :主体id集合
     * @return key:id/value:点赞数
     * @author qifengs
     * @date 2020/5/14
     **/
    @GetMapping("/v2/likes/entity/count")
    ResponseEntity<Map<String, Integer>> getLikeCounts(@RequestParam List<String> topicIds);
}
